<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = [2, 5, 78, 90, 4, 66, 20, 9];
        let arr1 = [];// = new Array();
        for (let item of arr) {
            // console.log(item);遍历
            if (item >= 10) {
                arr1[arr1.length] = item;
            }
        }
        console.log(arr1);
    </script>
</body>

</html>